#include <iostream>
#include "point.h"
#include "circle.h"

Circle::Circle() : O(new Point), R(0)
{
}

Circle::Circle(Point &point, float r) : O(&point), R(r)
{
}

const Point *Circle::GetO()
{
    return O;
}

float Circle::GetR()
{
    return R;
}

void Circle::SetR(float r)
{
    R = r;
}
void Circle::MoveTo(int x, int y)
{
    O->MoveTo(x, y);
}

void Circle::Display()
{
    O->Display();
    std::cout << "r=" << R << std::endl;
}
